package com.yuyou.train.lesson.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yuyou.train.lesson.service.IResourceService;
import com.yuyou.train.service.api.lesson.dto.ResourceDetailDTO;
import com.yuyou.train.service.api.lesson.service.ResourceAPI;





@RestController
public class ResourceAPIImpl implements ResourceAPI{
	
	@Autowired
	private IResourceService resourceService;

	@Override
	public ResourceDetailDTO selectById(@RequestParam("id") String id) {
		return resourceService.selectByPrimaryKey(id);
	}
	

	
}
